package com.imooc.beanannotation.multibean;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class BeanInvoker {
	
	@Autowired
	private List<BeanInterface> list;
	
	@Autowired
	private Map<String,BeanInterface> map;
	
	@Autowired
	private BeanInterface beanInterface;
	
	public void say(){
		
		if (null!=list) {
			for (BeanInterface bean : list) {
				System.out.println(bean.getClass().getClass());
			}
		}else {
			System.out.println("List<BeanInterface> list is null!!!!!!!!!!!!");
		}
		
		
	}
	
	
}







































